<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>test_init_defaults (SM_test_test)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File test/sm_test_test.rb, line 23</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_init_defaults</span>
    <span class="ruby-identifier">result</span> = <span class="ruby-constant">SM_test</span>.<span class="ruby-identifier">new</span>() <span class="ruby-comment cmt">#test default constuctor and default values</span>
    <span class="ruby-identifier">assert_match</span>(<span class="ruby-regexp re">/\b\w{8}-\w{4}-\w{4}-\w{4}-\w{12}\b/</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">uid</span>, <span class="ruby-value str">&quot;Illformed UUID&quot;</span>)
    <span class="ruby-identifier">assert_not_nil</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">asset</span>,<span class="ruby-value str">&quot;Attribute image is nil.&quot;</span>)
    <span class="ruby-identifier">assert_not_nil</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">name</span>,<span class="ruby-value str">&quot;Attribute name is nil.&quot;</span>)
    <span class="ruby-identifier">assert_not_nil</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">instructions</span>,<span class="ruby-value str">&quot;Attribute instructions is nil.&quot;</span>)
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>
